package com.power.ding.api;

import com.plf.common.domain.ResponseDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import com.power.ding.model.Di_rel_dept_target;
import com.power.ding.model.pageInfo.Di_rel_dept_targetPageInfo;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  司法组织机构-被申请人 Feign
 */
public interface IDi_rel_dept_targetFeign {

    /**
     * 司法组织机构-被申请人分页列表
     */
    @PostMapping("/di_rel_dept_target/list")
    ResponseDTO list(@RequestBody Di_rel_dept_targetPageInfo di_rel_dept_targetPageInfo);

    /**
    * 查看司法组织机构-被申请人
    */
    @GetMapping("/di_rel_dept_target/view")
    ResponseDTO view(@RequestParam("id") String id);

    /**
    * 删除司法组织机构-被申请人
    */
    @PostMapping("/di_rel_dept_target/delete")
    ResponseDTO delete(@RequestParam("id") String id);

    ///**
    // * 查看司法组织机构-被申请人 复合主键使用
    // */
    //@PostMapping("/di_rel_dept_target/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Di_rel_dept_target.Di_rel_dept_targetPK pk);

    /**
     * 修改或保存司法组织机构-被申请人
     */
    @PostMapping("/di_rel_dept_target/save")
    ResponseDTO save(@RequestBody Di_rel_dept_target  di_rel_dept_target);

    ///**
    // * 删除司法组织机构-被申请人 复合主键使用
    // */
    //@PostMapping("/di_rel_dept_target/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Di_rel_dept_target.Di_rel_dept_targetPK pk);
    
    /**
     * 批量删除司法组织机构-被申请人
     */
    @PostMapping("/di_rel_dept_target/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);
    
     /**
     * 导出excel
     */
    @PostMapping("/di_rel_dept_target/output")
    void output(HttpServletResponse response, @RequestBody Di_rel_dept_targetPageInfo di_rel_dept_targetPageInfo);
        
     /**
     * 导出excel模板
     */
    @PostMapping("/di_rel_dept_target/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);
    
     /**
     *	导入excel
     */
    @PostMapping("/di_rel_dept_target/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException ;


    @GetMapping("/di_rel_dept_target/queryAllTargetOrg")
    ResponseDTO queryAllTargetOrg() ;

    /**
     * 查询赣政通北被申请人组织
     * @param
     * @return
     */
    @PostMapping("/di_rel_dept_target/orgTree")
    ResponseDTO orgTree();
    
}
